home *** CD-ROM | disk | FTP | other *** search
- ' ***
- ' *** ------------------------------------------------------------------------------
- ' *** Filename: SCTMcAfeeVirusUpdate.vbs
- ' *** ------------------------------------------------------------------------------
- ' *** Description: McAfee Virus Signature Update for VirusScan
- ' *** ------------------------------------------------------------------------------
- ' *** Version: 1.1
- ' *** Notes: Used by Windows Disk Protection
- ' *** ------------------------------------------------------------------------------
- ' *** Copyright (C) Microsoft Corporation 2007, All Rights Reserved
- ' *** ------------------------------------------------------------------------------
- ' ***
-
- ' ~~~
- ' ~~~ Force variables to be declared
- ' ~~~
- Option Explicit
-
- ' ~~~
- ' ~~~ Turn on error handling
- ' ~~~
- On Error Resume Next
-
- ' ~~~
- ' ~~~ Declare global variables
- ' ~~~
- Dim sMcAfeePath, oShell
-
- ' ~~~ Create objects
- Set oShell = CreateObject("WScript.Shell")
-
- ' ~~~ Set application path
- sMcAfeePath = oShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\McAfee.com\Agent\Install Dir")
-
- ' ~~~ Download Virus Signature
- call oShell.Run(chr(34) & sMcAfeePath & "\mcupdate.exe" & chr(34) & " /Schedule", 0, True)
-
- ' ~~~ Wait 5 minutes
- WScript.Sleep (300000)